import {createRouter, createWebHashHistory} from 'vue-router'
import DiningRoom from '../components/DiningRoom.vue';
import DrawingRoom from '../components/DrawingRoom.vue';
import MasterBedroom from '../components/MasterBedroom.vue';
import Veranda from '../components/Veranda.vue';

  const router = createRouter({
    history: createWebHashHistory(),
    routes: [
      {
        path: '/',
        component: DrawingRoom
      },
      {
        path: '/drawingRoom',
        component: DrawingRoom
      },
      {
        path: '/diningRoom',
        component: DiningRoom
      },
      {
        path: '/veranda',
        components: {
          veranda: Veranda,
          default: Veranda
        }
      },
      {
        path: '/masterBedroom',
        component: MasterBedroom
      },
      {
        path: '/sss',
        redirect: '/diningRoom'
      }
    ]
  });
  export default router